package com.yanqu.road.logic.bussiness.player.activity;

import com.yanqu.road.entity.activity.drawPictures.UserDrawPicturesActivityData;
import com.yanqu.road.entity.activity.drawPictures.UserPictures;
import com.yanqu.road.entity.activity.drawPictures.UserPicturesComb;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class UserDrawPicturesBusiness {

    public static Map<Integer, UserDrawPicturesActivityData> getDrawPicturesUserActivityData(List<Integer> activityIdList, long userId) {
        return DaoHelper.getDrawPicturesUserActivityDataDaoImpl().getDrawPicturesUserActivityData(activityIdList, userId);
    }

    public static boolean insertDrawPicturesUserActivityData(UserDrawPicturesActivityData data) {
        return DaoHelper.getDrawPicturesUserActivityDataDaoImpl().add(data);
    }

    public static boolean updateDrawPicturesUserActivityData(UserDrawPicturesActivityData data) {
        return DaoHelper.getDrawPicturesUserActivityDataDaoImpl().update(data);
    }

    public static Map<Integer, Map<Integer, UserPictures>> getDrawPicturesUserPicturesData(List<Integer> activityIdList, long userId) {
        return DaoHelper.getDrawPicturesUserPicturesDataDaoImpl().getDrawPicturesUserPicturesData(activityIdList, userId);
    }

    public static boolean insertDrawPicturesUserPicturesData(UserPictures data) {
        return DaoHelper.getDrawPicturesUserPicturesDataDaoImpl().add(data);
    }

    public static boolean updateDrawPicturesUserPicturesData(UserPictures data) {
        return DaoHelper.getDrawPicturesUserPicturesDataDaoImpl().update(data);
    }

    public static Map<Integer, Map<Integer, UserPicturesComb>> getDrawPicturesUserPicturesCombData(List<Integer> activityIdList, long userId) {
        return DaoHelper.getDrawPicturesUserPicturesCombDataDaoImpl().getDrawPicturesUserPicturesCombData(activityIdList, userId);
    }

    public static boolean insertDrawPicturesUserPicturesCombData(UserPicturesComb data) {
        return DaoHelper.getDrawPicturesUserPicturesCombDataDaoImpl().add(data);
    }

    public static boolean updateDrawPicturesUserPicturesCombData(UserPicturesComb data) {
        return DaoHelper.getDrawPicturesUserPicturesCombDataDaoImpl().update(data);
    }
}
